import { ElNotification,ElMessageBox } from "element-plus"

export function toast(message,type = "success" , dangerouslyUseHTMLString = false){
    ElNotification({
        message ,
        type ,
        dangerouslyUseHTMLString ,
        duration:3000
    })
}

export function showModel(content = "提示内容",type="warning",title=""){
    return  ElMessageBox.confirm(
        content,
        title,
        {
          confirmButtonText: '确定',
          cancelButtonText: '取消',
          type,
        }
      )
}